-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NodeOrder to devices API #2959
Conversation
/assign @william-wang @wangyang0616 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -0,0 +1,65 @@ | |||
/* | |||
Copyright 2018 The Kubernetes Authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The time here can be updated.
if !devices.HasDeviceRequest(task.Pod) { | ||
continue | ||
} | ||
tmp, err := devices.ScoreNode(task.Pod) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better way to name the tmp variable?
klog.Warningln("scoreNode failed in predicate nodeorderFn", err.Error()) | ||
return 0, err | ||
} | ||
score += tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does deveice's scoring strategy support weight configuration?
Add NodeOrder to devices API
Add NodeOrder to devices API. Devices API should provide the ability to score each node based on corresponding device information of this node. A device which don't want to participate in score process, can simply return a (0,nil) in ScoreNode.
Future work includes implement "Mellanox" device in devices API, which can provide more accurate scheduling decision making based on Infiniband-network topology. It is crucial for large-scale training cluster which uses mellanox for InfiniBand data exchange.